# -*- coding: UTF-8 -*-
# 文件名: socketServer.py

import socket
s = socket.socket()
host = socket.gethostname()
port = 8006
s.bind((host, port))
s.listen(5)
while True:
    c, addr =s.accept()
    print(f'连接地址：{addr}')
    c.send(bytes('你好，欢迎来到未来世界!', 'utf-8'))
    c.close()
